import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import markdown from 'vite-plugin-md'
import path from 'path'
const resolve = (dir: string) => path.join(__dirname, dir)
export default defineConfig({
  plugins: [
    vue({
      include: [/\.vue$/, /\.md$/]
    }),
    markdown()
  ],
  resolve: {
    alias: {
      '@docs': resolve('src/docs'),
      '@': resolve('src')
    }
  },
  server: {
    port: 9999
  }
})
